import 'package:flutter/material.dart';
import 'package:ivc/model/bizmodel.dart';
import 'package:transparent_image/transparent_image.dart';
import '../../routers/application.dart';
import '../../model/test_data.dart';
import "../factory/running_status.dart";
class ScannerPage extends StatefulWidget {
  final String id;
  final bool readonly;

  ScannerPage({this.id, this.readonly});
  @override
  ScannerPageState createState() => new ScannerPageState();
}

class ScannerPageState extends State<ScannerPage> {
  @override
  void initState() {
    super.initState();
  }

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: Text("扫描二维码"),
      ),
      body: ListView(
          children: <Widget>[
            GestureDetector(
              child: Image.asset("assets/images/scan.png"),
              onTap: () {
                Application.router.navigateTo(context, "/asset_page");
              },
            )
          ]),
    );
  }
}
